import os.path
import tornado.web
from Handlers.module import BookModule
from url import url

settings = dict(
    template_path=os.path.join(os.path.dirname(__file__), "templates"),
    static_path=os.path.join(os.path.dirname(__file__), "statics"),
    ui_modules={'Book': BookModule}
)

application = tornado.web.Application(
    handlers=url,
    **settings
)